// 导入
import { createRouter,createWebHashHistory } from "vue-router";

// 创建路由表
const routes = [
  {
    // 路由地址
    path:"/cart",
    // 对应路由显示组件
    component: () => import("../views/cart.vue")
  },
  {
    path:"/home",
    component: () => import("../views/home.vue")
  },
  {
    path:"/login",
    component: () => import("../views/login.vue")
  }
]

const router = createRouter({
  history:createWebHashHistory(),
  routes
})

export default router